<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>懒人家居后台管理</title>
<link href="admin.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript" src="js/admin.js"></script>
<script language="javascript">
function submitcolors(){
	if(document.getElementById("name").value.trim()==""){
		alert("请输入名称");
		document.getElementById("name").value="";
		document.getElementById("name").focus();
		return;
	}
	document.getElementById("form1").submit();
}
</script>
</head>
<body>
<table width="100%" height="500" class="whiteTable" border="0" cellpadding="0" cellspacing="0" style="white-space:normal;word-break:break-all;">
  <tr>
    <td align="left" valign="middle" class="pathBg">&nbsp;&nbsp;色板管理 &gt;&gt; 添加颜色</td>
  </tr>
  <tr>
    <td height="460" align="left" valign="top"><form action="addColors.action" method="post" id="form1" name="form1" enctype="multipart/form-data">
        <table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="60" height="50">&nbsp;</td>
            <td width="340">&nbsp;</td>
          </tr>
          <tr>
            <td height="25" align="center" valign="middle">名 称：</td>
            <td><input id="name" name="name" type="text" size="30"><font color="red">*</font></td>
          </tr>
          <tr>
            <td height="25" align="center" valign="middle">类 别：</td>
            <td><s:select name="ccatid" theme="simple" list="ccs" listKey="id" listValue="name" required="true" value="#session['ccatid']"/><font color="red">*</font></td>
          </tr>
          <tr>
            <td height="25" align="center" valign="middle">推荐度：</td>
            <td><select id="recommend" name="recommend">
              <option value="1">1</option>
              <option value="2">2</option>
              <option value="3">3</option>
              <option value="4">4</option>
              <option value="5">5</option>
            </select></td>
          </tr>
		  <tr>
            <td height="25" align="right" valign="middle">图 &nbsp;片：</td>
            <td><input name="upload" type="file" id="upload" size="30"></td>
		  </tr>
          <tr>
            <td height="30" align="center"><a href="#" onClick="submitcolors()" class="add">提交</a></td>
            <td><a href="#" onClick="javascript:document.location.href='listColors.action';" class="add">取消</a></td>
          </tr>
        </table>
    </form></td>
  </tr>
</table>
</body>
</html>
